<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><!--引入头部文件-->
<?php include template("content","header"); ?>
<!--引入导航条-->
<?php include template("content","nav"); ?>
<!--标题图片-->
<div class="thumb">
    <img src="<?php echo IMG_PATH;?>/img/1.png">
</div>
<!--主体-->
<div class="dcit-main">
    <div class="sub-nav">
        <div class="sub">
            <dl>
                <dt>德育工作</dt>
                <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=9d127a1c7a44af8d084a8925906300d4&action=category&catid=42&order=listorder+ASC\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'category')) {$data = $content_tag->category(array('catid'=>'42','order'=>'listorder ASC','limit'=>'20',));}?>
                <?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
                <dd <?php if($catid==$r['catid']) { ?> class="active" <?php } ?>>
                <a href="<?php echo $r['url'];?>"><?php echo $r['catname'];?><i class="icon iconfont icon-arrows-r"></i></a>
                </dd>
                <?php $n++;}unset($n); ?>
                <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
            </dl>
        </div>
        <div class="leave-word">
            <div class="title clearfix">
                <div><i class="icon iconfont icon-leave-word"></i></div>
                <div><p>留言板</p><small>Message Board</small></div>
            </div>
            <div class="leave-center">
                <input type="text" placeholder="请留下您宝贵的意见或建议"/><span><i class="icon iconfont icon-send"></i></span>
            </div>
        </div>
        <div class="links">
            <h3>相关链接</h3>
            <small>欢迎来到神岗山中学</small>
            <?php include template("content","link"); ?>
        </div>
    </div>
    <div class="main">
        <!--面包屑导航-->
        <div class="breadcrumb">
            <ul>
                <li><a href="#"><i class="icon iconfont icon-house"></i></a>
                    <?php echo catpos($catid);?>
                </li>
            </ul>
            <div class="line"></div>
        </div>
        <!---->
        <div class="context-list">
            <ul>
                <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=5ab4b05e97fd14c3ed386604ee1a9399&action=lists&catid=%24catid&num=25&order=id+DESC&page=%24page\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$pagesize = 25;$page = intval($page) ? intval($page) : 1;if($page<=0){$page=1;}$offset = ($page - 1) * $pagesize;$content_total = $content_tag->count(array('catid'=>$catid,'order'=>'id DESC','limit'=>$offset.",".$pagesize,'action'=>'lists',));$pages = pages($content_total, $page, $pagesize, $urlrule);$data = $content_tag->lists(array('catid'=>$catid,'order'=>'id DESC','limit'=>$offset.",".$pagesize,'action'=>'lists',));}?>
                <?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
                <li><a href="<?php echo $r['url'];?>"><?php echo $r['title'];?><span><i class="icon iconfont icon-dob-arrows-r"></i></span></a></li>
                <?php $n++;}unset($n); ?>
            </ul>
        </div>
        <!--分页-->
        <div class="page">
            <?php echo $pages;?>
        </div>
        <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
    </div>
</div>
<!--底部-->
<?php include template("content","footer"); ?>